﻿using UnityEngine;
using System.Collections;

public class Hate_distance : MonoBehaviour {

	public Hate hate;
	void OnTriggerExit(Collider collider)
	{
		if (collider.gameObject.tag == "Enemy") 
		{
			//transform.parent.gameObject.GetComponent<Hate>().remove_hate(collider.gameObject);
			hate.remove_hate(collider.gameObject);
		}
	}
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
